package com.erdos.core.service.impl;

import java.util.HashMap;
import java.util.Map;

import com.erdos.common.service.BaseCRUDService;
import com.erdos.core.dao.EventDao;
import com.erdos.core.entity.Event;
import com.erdos.core.service.EventService;

public class EventServiceImpl extends BaseCRUDService<Event> implements EventService{
	private EventDao eventDao;

	public EventDao getEventDao() {
		return eventDao;
	}

	public void setEventDao(EventDao eventDao) {
		this.eventDao = eventDao;
	}

	/* (non-Javadoc)
	 * @see com.hp.core.service.EventService#findEventByEventId(java.lang.String)
	 */
	public Event findEventByEventId(String eventId) {
		Map<String,Object> params=new HashMap<String,Object>();
		params.put("eventId", eventId);
		return eventDao.findUniqueByParams(params);
	}
	

}
